<html>
<head>
<title>MapXtreme Java JSP Custom Tag Sample</title>
<%@ taglib uri="/mapinfo" prefix="mapinfo" %>
<%@ taglib uri="/mapxtreme" prefix="mapxtreme" %>
<%@ page
	language = "java"
	contentType = "text/html;charset=UTF-8"
%>
</head>
<mapinfo:mapapp name="frames">
<body bgcolor="#0086B2">

<mapxtreme:layercontrol dialog="false">
	<p><table border=0 cellspacing=0 cellpadding=2>
	<tr bgcolor="#C1C1C1"><td><img src="images/visible.gif" alt="<mapinfo:localString string="dialog_visible"/>"></td><td><img src="images/autolabel.gif" alt="<mapinfo:localString string="dialog_label"/>"><td><img src="images/selectable.gif" alt="<mapinfo:localString string="dialog_select"/>"></td><td></td><td colspan=5><b><mapinfo:localString string="dialog_name"/></b></td></tr>
	<mapxtreme:layerlist>
	<tr>
		<td><mapxtreme:visible/></td>
		<td><mapxtreme:label/></td>
		<td><mapxtreme:select/></td>
		<td align=right><mapxtreme:layerIndex /></td>
		<% if(layer!=null && featureLayer.booleanValue()) { %>
			<td><mapxtreme:layername tableInfo="true"/></td>
			<td><mapxtreme:displayOptionsTool /></td>
			<td><mapxtreme:labelOptionsTool /></td>
			<td><mapxtreme:fontOptionsTool /></td>
		<% } else if (layer!=null) { %>
			<td><mapxtreme:layername tableInfo="false"/></td>
			<td colspan=3><mapxtreme:displayOptionsTool /></td>
		<% } else { %>
			<td colspan=4><mapxtreme:layername /></td>
		<% } %>
		<td><mapxtreme:removeLayer width="20" height="20" /></td>
	</tr>
	</mapxtreme:layerlist>
	</table>
	<center><input type="submit" value="<mapinfo:localString string="button_refresh"/>" onClick="document.refreshmap.submit(); return true;">&nbsp;&nbsp;&nbsp;<input type="reset" value="<mapinfo:localString string="button_cancel"/>">
	<input type=hidden name="redirect" value="/layercontrol.jsp">
</mapxtreme:layercontrol>

<form name='refreshmap' action='map.jsp' target='framesmapwindow'><input type=hidden name="fromlayercontrol" value="true"><input type=hidden name=refresh value='<%= Math.random() %>'></form>

</body>
</mapinfo:mapapp>
</html>
